const layout = {
    // d3Force: {
    //     type: 'd3-force',
    //     center: {
    //         x: 1200,
    //         y: 600
    //     },
    //     collide: {
    //         strength: 0.5
    //     },
    //     nodeSize: 60,
    // },
    d3Force: {
        type: 'd3-force',
        link: {
            distance: (d) => {
                if (d.source.id === 'node0') {
                    return 200;
                }
                return 60;
            },
            strength: (d) => {
                if (d.source.id === 'node1' || d.source.id === 'node2' || d.source.id === 'node3') {
                    return 1;
                }
                return 0.04;
            },
        },
        manyBody: {
            strength: (d) => {
                if (d.isLeaf) {
                    return -450;
                }
                return -150;
            },
        },
        nodeSize: 80,
    },
    force: {
        type: 'force',
        clustering: true,
        nodeClusterBy: 'nodeType',
        clusterNodeStrength: 80,
        linkDistance: 60,
        preventOverlap: true,
        nodeSize: 120,
        nodeSpacing: 20,
        maxSpeed: 210,
    },
    forceAtlas2: {
        type: 'force-atlas2',
        preventOverlap: true,
        kr: 68,
        nodeSize: 180,
    },
    fruchterman: {
        type: 'fruchterman',
        clustering: true,
        nodeClusterBy: 'nodeType',
        gravity: 8,
        speed: 5,
        clusterGravity: 15
    },
    radial: {
        type: 'radial',
        nodeSize: 100,
        nodeSpacing: 20,
        sortBy: 'important',
        preventOverlap: true,
        sortStrength: 3.4,
        maxPreventOverlapIteration: 800,
    }
}
export default layout
